@mixin clearfix {
  &:after {
    content: '';
    display: table;
    clear: both;
  }
}

@mixin ellipsis {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@mixin scrollBar {
  &::-webkit-scrollbar-track-piece {
    background: #d3dce6;
  }

  &::-webkit-scrollbar {
    width: 6px;
  }

  &::-webkit-scrollbar-thumb {
    background: #99a9bf;
    border-radius: 20px;
  }
}

@mixin flex-horizontal--vertical {
  display: flex;
  display: -webkit-flex;
  align-items: center;
  -webkit-align-items: center;
  justify-content: center;
  -webkit-justify-content: center;
}

@mixin flex-space-between-vertical {
  display: flex;
  display: -webkit-flex;
  align-items: center;
  -webkit-align-items: center;
  justify-content: space-between;
  -webkit-justify-content: space-between;
}

@mixin flex-space-between {
  display: flex;
  display: -webkit-flex;
  justify-content: space-between;
  -webkit-justify-content: space-between;
}

@mixin flex-space-around {
  display: flex;
  display: -webkit-flex;
  justify-content: space-around;
  -webkit-justify-content: space-around;
}

@mixin flex-row-vertical {
  display: flex;
  display: -webkit-flex;
  align-items: center;
  -webkit-align-items: center;
}

@mixin flex-column-horizontal {
  display: flex;
  display: -webkit-flex;
  flex-direction: column;
  align-items: center;
  -webkit-align-items: center;
}

@mixin white-space-warp {
  white-space: pre-wrap;
  word-wrap: break-word;
}

//公用格子初始化
@mixin lattice-base {
  margin-bottom: 12px;
  background-color: #fff;
  padding: 12px;
  box-sizing: border-box;
  border-radius: 5px;
}

@mixin flex-cloumn-width-height-100 {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

@mixin flex-scroll-content-pd($pd) {
  width: 100%;
  height: 100%;
  overflow-y: scroll;
  padding: $pd;
  box-sizing: border-box;
}

@mixin px-1 {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  background: #e4e7ed;
  width: 100%;
  height: 1px;
  -webkit-transform: scaleY(0.5);
  transform: scaleY(0.5);
  -webkit-transform-origin: 0 0;
  transform-origin: 0 0;
}